<?php
/**
 * Accounts default controller
 *
 * @package    Joomla
 * @subpackage Accounts
 * @license		GNU/GPL
 */

jimport('joomla.application.component.controller');

/**
 * Accounts Component Controller
 *
 * @package    Joomla
 * @subpackage Accounts
 */
class AccountsController extends JController
{
	/**
	 * Method to display the view
	 *
	 * @access	public
	 */
	function display()
	{
		$user	=& JFactory::getUser();

		if ( !$user->get('guest')) {
			$layout = JRequest::getVar('layout');
			JRequest::setVar('controller', 'view');
			JRequest::setVar('layout', 'reg');
		}
		parent::display();
	}
}
?>
